package lab02.text11;

/**
 * Created by leovo on 2017/10/19.
 */
public class Rectangle implements Printx {
    //属性：长、宽、面积、周长
    double length;
    double width;
    double area;
    double perimeter;

    //方法
    void length(){
        System.out.println("长=1.1");
    }
    void width(){
        System.out.println("宽=1.1");
    }
    void area(){
        System.out.println("面积=1.1*1.1");
    }
    void perimeter(){
        System.out.println(" 周长=1.1*4");
    }


//构造函数
  //  Rectangle(){}


    @Override
    public void printMyWay() {
        System.out.println("1.1,1.1,4.4,4.4;");
    }
}
